from pydantic import BaseModel, Field
from typing import Optional

class WechatLoginRequest(BaseModel):
    code: str = Field(..., description="微信登录code")
    phone: Optional[str] = None
    name: Optional[str] = None

class AdminLoginRequest(BaseModel):
    username: str
    password: str

class TokenResponse(BaseModel):
    access_token: str
    refresh_token: str
    token_type: str = "bearer"

class RefreshTokenRequest(BaseModel):
    refresh_token: str

